package com.travel.travelServer.entity1.vo;

import com.travel.travelServer.entity1.Menu;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 *  menu表对应 vo对象
 * </p>
 *
 * @author <>
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MenuVo extends Menu implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String name;
    private String path;
    private Integer status;
    private String code;
    private String permission;
    private String icon;
    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate createTime;
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate updateTime;

}